package com.tjresearch.threaddemo;

public class MainTest {
	
	public static String name = null;
	private static  ThreadLocal<String> threadStr = new ThreadLocal<String>();
	public static void main(String[] args) {
		Thread t1 = new PersonThread1();
		Thread t2 = new PersonThread2();
		t1.start();
		t2.start();
		
		
	}
	public static void setThreadName(String name){
		threadStr.set(name);
	}
	public static String getThreadName(){
		return threadStr.get();
	}
	
	
	

}
